package zuoye1;

import java.util.Scanner;

public class zy1_2 {
    public static void main(String[] args) {
        Scanner Sc = new Scanner(System.in);
        System.out.println("请输入a的值：");
        int a = Sc.nextInt();
        System.out.println("请输入b的值：");
        int b = Sc.nextInt();
        System.out.println("请输入c的值：");
        int c = Sc.nextInt();
        int max=a;
        if(a>b & a>c)
        {
            max=a;
        }
        else if(b>a &b>c){
            max=b;
        }
        else if(c>a & c>b){
            max=c;
        }
        System.out.println("最大值："+max);
       }
    }
